﻿//04.Write a program that reads two positive integer numbers and prints how many numbers p
//exist between them such that the reminder of the devision by 5 is 0.
//Example: p(17,25) = 2.

using System;

namespace PositiveIntegers
{
    class NumbersP
    {
        static void Main()
        {
            Console.Write("Please enter the first number: ");
            int a = int.Parse(Console.ReadLine());
            Console.Write("Please enter the second number: ");
            int b = int.Parse(Console.ReadLine());

            int count = 0;

            for (int i = a; i <= b; i++)
            {
                if (i % 5 == 0)
                {
                    count++;
                }
            }
            Console.WriteLine("p({0},{1})={2}", a, b, count);
        }
    }
}
